<%--
  Created by IntelliJ IDEA.
  User: 竹康乐
  Date: 2022/11/12
  Time: 15:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>${requestScope.a.title}</title>
    <style>
        body{
            text-align: center;
        }
        img{
            width: 40px;
            height: 40px;
            border-radius: 20px;

        }
        h2{
            margin-top: 30px;
            color: dimgrey;
        }
        div,label{

            margin-top: 10px;
            font-size: 14px;
            color: rgba(0,0,0,0.7);

        }

        label{
            display: inline-block;
            line-height: 40px;
            vertical-align: top;
            margin-top: -2px;
        }
        .content{
            margin: 10px auto;
            width: 85%;
            line-height: 22px;
        }
    </style>
</head>
<body>
<h2>${requestScope.a.title}</h2>
<div class="author">
    <img src="${requestScope.a.user.avatar}">
    <label>${requestScope.a.user.nickname}</label>
    <label>字数：${requestScope.a.wordtotal}</label>
    <label>
        发布时间：<fmt:formatDate value="${requestScope.a.addtime}" pattern="yyyy-mm-dd HH:MM:ss"></fmt:formatDate>
    </label>
</div>
<div class="content">${requestScope.a.content}</div>

</body>
</html>